package com.cool.cloud.mapper;

import com.cool.cloud.entity.SliderPicture;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @InterfaceName: SliderPictureMapper
 * @Description: 与滚动图相关的数据库操作
 * @author: laijunji
 * @date 2020/1/26 21:55
 * @Version: 1.0
 **/
@Mapper
public interface SliderPictureMapper {

    /**
     * 查询所有
     *
     * @return List
     */
    List<SliderPicture> queryAll();

    /**
     * 根据主键删除
     *
     * @param id
     * @return
     */
    int delete(Integer id);

    /**
     * 新增
     *
     * @param picture
     * @return
     */
    int add(SliderPicture picture);
}
